package designpattern.d16;



/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2020/2/20 14:44
 */
public abstract class AlertHandler {

    protected AlertRule rule;
    protected Notification notification;

    public AlertHandler(AlertRule rule, Notification notification) {
        this.rule = rule;
        this.notification = notification;
    }

    /**
     * 初始化check方法
     *
     * @param apiStatInfo 入参
     */
    public abstract void check(ApiStatInfo apiStatInfo);
}
